package sis.ra.utility;

import sis.ra.utility.InxEntity;

public class InxEntity {

	public InxEntity(String canoical, String canoicalType, String confidence,
			String entityType, String id, String offset, String position,
			String relevance, String surface) {
		super();
		this.canoical = canoical;
		this.canoicalType = canoicalType;
		this.confidence = confidence;
		this.entityType = entityType;
		this.id = id;
		this.offset = offset;
		this.position = position;
		this.relevance = relevance;
		this.surface = surface;
	}


	//<entity canonical="Rami Branitzky" canonical-type="na" surface="Rami Branitzky" entity-type="PROP_MISC" offset="0" length="14" method="Unique" confidence="1" relevance="15" paragraph-id="1" sentence-id="1"></entity>
	String canoical;
	String canoicalType;
	String surface;
	String entityType;
	String position;
	String id;
	String confidence;
	String relevance;
	String offset;
	
	public InxEntity(String id, String canoical, String canoicalType, String surface,
			String entityType, String position) {
		super();
		this.id=id;
		this.canoical = canoical;
		this.canoicalType = canoicalType;
		this.surface = surface;
		this.entityType = entityType;
		this.position = position;
	}


	public static String toString(InxEntity en)
	{
		return en.getCanoical() +"\n"+ en.getCanoicalType() +"\n"+ en.getSurface() +"\n"+ en.getEntityType() +"\n"+ en.getPosition();
	}
	
	public String getCanoical() {
		return canoical;
	}

	public void setCanoical(String canoical) {
		this.canoical = canoical;
	}

	public String getCanoicalType() {
		return canoicalType;
	}

	public void setCanoicalType(String canoicalType) {
		this.canoicalType = canoicalType;
	}

	public String getSurface() {
		return surface;
	}

	public void setSurface(String surface) {
		this.surface = surface;
	}

	public String getEntityType() {
		return entityType;
	}

	public void setEntityType(String entityType) {
		this.entityType = entityType;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}


	public String getConfidence() {
		return confidence;
	}


	public void setConfidence(String confidence) {
		this.confidence = confidence;
	}


	public String getRelevance() {
		return relevance;
	}


	public void setRelevance(String relevance) {
		this.relevance = relevance;
	}


	public String getOffset() {
		return offset;
	}


	public void setOffset(String offset) {
		this.offset = offset;
	}

}
